import request from './utils/request'

export default {
  //条件分页课程查询的方法
  deleteById(id) {
    return request({
      url: `/eduservice/edu_publishhomework/${id}`,
      method: 'delete',

    })
  },
  addPublish(folderList,classList,courseList,publicHomework) {
    return request({
      url: `/eduservice/edu_publishhomework`,
      method: 'post',
      data: {
        folderList,
        classList,
        courseList,
        publicHomework
      }
    })
  },
  getPublishByTeacherId(teacherId) {
    return request({
      url: `/eduservice/edu_publishhomework/${teacherId}`,
      method: 'get',

    })
  },
  getPublishInfo(id) {
    return request({
      url: `/eduservice/edu_publishhomework/getPublishInfo/${id}`,
      method: 'get',

    })
  },
  getPublishList(page,limit,searchObj) {
    return request({
      url: `/eduservice/edu_publishhomework/${page}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },

}
